<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018-10-05
  Time: 13:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加空气质量信息页面</title>
</head>
<script src="${pageContext.request.contextPath}/jquery.min.js"></script>
<script>
   /* jQuery转换js
    var js = jQuery[0]
    js转换jquery
    var jquery=$(js);*/

   //右对齐
    $(function () {
        var tds=$("#td tr td:even");
        tds.css("text-align","right");
    });
</script>
<body style="text-align: center;">

   <%-- ${list}--%>
    <h1>添加空气质量信息</h1>
    <br />
    <form action="${pageContext.request.contextPath}/air/doAdd" method="post">
        <table id="td" style="margin: auto;">
        <tr>
            <td>监测区域</td>
            <td>
                <select name="districtId">
                    <option value>请选择</option>
                    <c:forEach items="${list}" var="d">
                    <option value="${d.id}">${d.name}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>监测日期</td>
            <td>
                <input type="date" name="monitorTime">
            </td>
        </tr>
        <tr>
            <td>PM10值</td>
            <td>
                <input type="text" name="pm10">
            </td>
        </tr>
        <tr>
            <td>PM2.5</td>
            <td>
                <input type="text" name="pm25">
            </td>
        </tr>
        <tr>
            <td>监测站</td>
            <td>
                <input type="text" name="monitoringStation">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <button type="submit">保存</button>
                <button type="reset">重置</button>
                <button type="button" onclick="history.back();">返回</button>
            </td>
        </tr>
        </table>
    </form>

</body>
</html>
